\hypertarget{classfw_trace_output}{
\section{fwTraceOutput Class Reference}
\label{classfw_trace_output}\index{fwTraceOutput@{fwTraceOutput}}
}


This class is used to display debug or error messages. It needs to be initialized with the file name, function name and line, of the place where it is created. It is best used by first instanciating the object and directly calling the () operator. This is used to mimic variadic macros (not supported in MSVC prior to version 8).  


{\ttfamily \#include $<$fwDebug.h$>$}\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classfw_trace_output_a687a2150e921abb3a9dbcbbc3276528e}{fwTraceOutput} (const char $\ast$file, int line, const char $\ast$func, bool error=false, const char $\ast$s=NULL)
\item 
void \hyperlink{classfw_trace_output_abce89c51d2731d89d951dc22cdb4786a}{operator()} (int niv, const char $\ast$format,...)
\item 
void \hyperlink{classfw_trace_output_a546e9171375a46604d2809d997b66866}{operator()} (const char $\ast$format,...)
\item 
void \hyperlink{classfw_trace_output_a3f32ad024995bbcbb53edec39be0617a}{display} (const char $\ast$format, va\_\-list args)
\item 
\hyperlink{classfw_trace_output_a687a2150e921abb3a9dbcbbc3276528e}{fwTraceOutput} (const char $\ast$file, int line, const char $\ast$func, bool error=false, const char $\ast$s=NULL)
\item 
void \hyperlink{classfw_trace_output_abce89c51d2731d89d951dc22cdb4786a}{operator()} (int niv, const char $\ast$format,...)
\item 
void \hyperlink{classfw_trace_output_a546e9171375a46604d2809d997b66866}{operator()} (const char $\ast$format,...)
\item 
void \hyperlink{classfw_trace_output_a3f32ad024995bbcbb53edec39be0617a}{display} (const char $\ast$format, va\_\-list args)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to display debug or error messages. It needs to be initialized with the file name, function name and line, of the place where it is created. It is best used by first instanciating the object and directly calling the () operator. This is used to mimic variadic macros (not supported in MSVC prior to version 8). 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classfw_trace_output_a687a2150e921abb3a9dbcbbc3276528e}{
\index{fwTraceOutput@{fwTraceOutput}!fwTraceOutput@{fwTraceOutput}}
\index{fwTraceOutput@{fwTraceOutput}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{fwTraceOutput}]{\setlength{\rightskip}{0pt plus 5cm}fwTraceOutput::fwTraceOutput (const char $\ast$ {\em file}, \/  int {\em line}, \/  const char $\ast$ {\em func}, \/  bool {\em error} = {\ttfamily false}, \/  const char $\ast$ {\em s} = {\ttfamily NULL})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_a687a2150e921abb3a9dbcbbc3276528e}
Constructor. 
\begin{DoxyParams}{Parameters}
\item[{\em file}]Should be the name of the file where this constructor was called. \item[{\em line}]Should be the line in file where this constructor was called. \item[{\em func}]Should be the name of the function where this constructor was called. \item[{\em error}]If true, writes to the error stream. \item[{\em s}]String to print before any other message (acts like a header). \end{DoxyParams}
\begin{DoxyNote}{Note}
Call the constructor with something like fwTraceOutput(\_\-\_\-FILE\_\-\_\-,\_\-\_\-LINE\_\-\_\-, \_\-\_\-FUNCTION\_\-\_\-). 
\end{DoxyNote}
\hypertarget{classfw_trace_output_a687a2150e921abb3a9dbcbbc3276528e}{
\index{fwTraceOutput@{fwTraceOutput}!fwTraceOutput@{fwTraceOutput}}
\index{fwTraceOutput@{fwTraceOutput}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{fwTraceOutput}]{\setlength{\rightskip}{0pt plus 5cm}fwTraceOutput::fwTraceOutput (const char $\ast$ {\em file}, \/  int {\em line}, \/  const char $\ast$ {\em func}, \/  bool {\em error} = {\ttfamily false}, \/  const char $\ast$ {\em s} = {\ttfamily NULL})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_a687a2150e921abb3a9dbcbbc3276528e}
Constructor. 
\begin{DoxyParams}{Parameters}
\item[{\em file}]Should be the name of the file where this constructor was called. \item[{\em line}]Should be the line in file where this constructor was called. \item[{\em func}]Should be the name of the function where this constructor was called. \item[{\em error}]If true, writes to the error stream. \item[{\em s}]String to print before any other message (acts like a header). \end{DoxyParams}
\begin{DoxyNote}{Note}
Call the constructor with something like fwTraceOutput(\_\-\_\-FILE\_\-\_\-,\_\-\_\-LINE\_\-\_\-, \_\-\_\-FUNCTION\_\-\_\-). 
\end{DoxyNote}


\subsection{Member Function Documentation}
\hypertarget{classfw_trace_output_a3f32ad024995bbcbb53edec39be0617a}{
\index{fwTraceOutput@{fwTraceOutput}!display@{display}}
\index{display@{display}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{display}]{\setlength{\rightskip}{0pt plus 5cm}void fwTraceOutput::display (const char $\ast$ {\em format}, \/  va\_\-list {\em args})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_a3f32ad024995bbcbb53edec39be0617a}
Displays a message to either stdout/stdcout or stderr/stdcerr (based on error boolean).


\begin{DoxyParams}{Parameters}
\item[{\em format}]Formating string. \item[{\em args}]List of arguments. \end{DoxyParams}
\hypertarget{classfw_trace_output_a3f32ad024995bbcbb53edec39be0617a}{
\index{fwTraceOutput@{fwTraceOutput}!display@{display}}
\index{display@{display}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{display}]{\setlength{\rightskip}{0pt plus 5cm}void fwTraceOutput::display (const char $\ast$ {\em format}, \/  va\_\-list {\em args})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_a3f32ad024995bbcbb53edec39be0617a}
Displays a message to either stdout/stdcout or stderr/stdcerr (based on error boolean).


\begin{DoxyParams}{Parameters}
\item[{\em format}]Formating string. \item[{\em args}]List of arguments. \end{DoxyParams}
\hypertarget{classfw_trace_output_a546e9171375a46604d2809d997b66866}{
\index{fwTraceOutput@{fwTraceOutput}!operator()@{operator()}}
\index{operator()@{operator()}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}void fwTraceOutput::operator() (const char $\ast$ {\em format}, \/   {\em ...})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_a546e9171375a46604d2809d997b66866}
Displays a string. 
\begin{DoxyParams}{Parameters}
\item[{\em format}]Formating string. \end{DoxyParams}
\hypertarget{classfw_trace_output_abce89c51d2731d89d951dc22cdb4786a}{
\index{fwTraceOutput@{fwTraceOutput}!operator()@{operator()}}
\index{operator()@{operator()}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}void fwTraceOutput::operator() (int {\em niv}, \/  const char $\ast$ {\em format}, \/   {\em ...})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_abce89c51d2731d89d951dc22cdb4786a}
Displays a string if the debug level is inferior to VP\_\-DEBUG\_\-MODE. 
\begin{DoxyParams}{Parameters}
\item[{\em niv}]Level of this message. \item[{\em format}]Formating string. \end{DoxyParams}
\hypertarget{classfw_trace_output_a546e9171375a46604d2809d997b66866}{
\index{fwTraceOutput@{fwTraceOutput}!operator()@{operator()}}
\index{operator()@{operator()}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}void fwTraceOutput::operator() (const char $\ast$ {\em format}, \/   {\em ...})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_a546e9171375a46604d2809d997b66866}
Displays a string. 
\begin{DoxyParams}{Parameters}
\item[{\em format}]Formating string. \end{DoxyParams}
\hypertarget{classfw_trace_output_abce89c51d2731d89d951dc22cdb4786a}{
\index{fwTraceOutput@{fwTraceOutput}!operator()@{operator()}}
\index{operator()@{operator()}!fwTraceOutput@{fwTraceOutput}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}void fwTraceOutput::operator() (int {\em niv}, \/  const char $\ast$ {\em format}, \/   {\em ...})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classfw_trace_output_abce89c51d2731d89d951dc22cdb4786a}
Displays a string if the debug level is inferior to VP\_\-DEBUG\_\-MODE. 
\begin{DoxyParams}{Parameters}
\item[{\em niv}]Level of this message. \item[{\em format}]Formating string. \end{DoxyParams}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/cv/ext/fw1394/include/fw/fwDebug.h\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/cv/ext/fw1394/src/tools/trace/fwDebug.h\end{DoxyCompactItemize}
